const enum Direction {
    up,
    down,
    left = 10,
    right
}

console.log(Direction.up) // 0

const enum Direction2 {
    up = 'up',
    down = 'down',
    left = 'left',
    right = 'right'
}

const value = 'up'
if(value === Direction2.up) {
    console.log('go up')
}